//
//  MBProgressHUD+CMProgressHUD.m
//  Perdate
//
//  Created by apple on 13-12-7.
//  Copyright (c) 2013年 apple. All rights reserved.
//

#import "MBProgressHUD+CMProgressHUD.h"

@implementation MBProgressHUD (CMProgressHUD)


+ (void)showHUDOnlyTextAddedTo:(UIView *)view
                     labelText:(NSString *)labelText
                    afterDelay:(NSTimeInterval)afterDelay
{
    MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:view animated:YES];
    HUD.mode = MBProgressHUDModeText;
    
    HUD.labelText =labelText;
    [HUD show:YES];
    [HUD hide:YES afterDelay:1];
}

@end

